<tr>
<td><%= league.name %></td>
<td><%= league.sport.name if league.sport %></td>
<td><%= league.country.name if league.country %></td>
<td><%= format_time league.last_fetched_at %></td>
<td>
<%= link_to "edit",edit_admin_league_path(league) %>
<%= link_to "delete",edit_admin_league_path(league),:method=>:delete,:confirm=>"are you sure?" %>
<%= link_to "fetch matches",fetch_matches_admin_league_path(league),:method=>:post %>
<%= link_to "fetch results",fetch_results_admin_league_path(league),:method=>:put %>
</td>
</tr>
